﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ModelEditHandler.ascx.cs" Inherits="Admin_Asp_UserControls_ModelEditHandler"  %>
<%@ Register Src="~/Admin/Asp/UserControls/TextureSelection.ascx" TagName="TextureSelection" TagPrefix="uc" %>
<%@ Register Src="~/Admin/Asp/UserControls/ShaderSelection.ascx" TagName="ShaderSelection" TagPrefix="uc" %>
<%@ Register Src="~/Admin/Asp/UserControls/ThumbnailSelection.ascx" TagName="ThumbnailSelection" TagPrefix="uc" %>

<label class="labelHeader">Model name:</label> <br />
<asp:TextBox id="x_edit_name" runat="server" OnTextChanged="NameChanged" /><br />
<label class="labelHeader">Model path:</label><br />
<asp:Label ID="x_edit_modelPath" runat="server" /> <br />
<label class="labelHeader">Thumbnail:</label><br />
<div class="presentation">
    <div class="presentation_left">
        <asp:Label ID="x_edit_thumbnail" runat="server" />         
        <asp:Image ID="x_edit_thumbnail_image" AlternateText="" runat="server" CssClass="thumbnail rightAlign" />
    </div>
    <div class="presentation_right">
        <asp:Button ID="x_edit_thumbnailChange" runat="server" Text="Edit Thumbnail" OnClick="ThumbnailChange" /><br />
    </div>
    <div style="clear:both"></div>
</div>

<label class="labelHeader">Shaders:</label><br />
<div class="presentation">
    <div class="presentation_left">   
        <asp:Label ID="x_edit_shadersLabel" runat="server" />
    </div>  
    <div class="presentation_right">
        <asp:Button ID="x_edit_shaderChange" runat="server" Text="Edit Shaders" OnClick="ShadersChange" /> <br />
    </div>
    <div style="clear:both"></div>
</div>
<br />
<label class="labelHeader">Textures:</label><br />
<label class="labelHeader">Diffuse Map</label><br />
<div class="presentation">   
    <div class="presentation_left">  
        <asp:Label id="x_diffusemap_label" Text="" runat="server"/>
        <asp:Image ID="x_diffusemap_image" AlternateText="" runat="server" CssClass="thumbnail rightAlign" />          
    </div>  
    <div class="presentation_right"> 
        <asp:Button ID="x_diffusemap_change" runat="server" Text="Edit Diffuse Map" OnClick="diffuseMap_change" />        
    </div>
    <div style="clear:both"></div>
</div>
<label class="labelHeader">Normal Map</label><br />
<div class="presentation">
    <div class="presentation_left">   
        <asp:Label id="x_normalmap_label" Text="" runat="server"/>  
        <asp:Image ID="x_normalmap_image" AlternateText="" runat="server" CssClass="thumbnail rightAlign" />
    </div>  
    <div class="presentation_right">
        <asp:Button ID="x_normalMap_change" runat="server" Text="Edit Normal Map" OnClick="normalMap_change" />
    </div>   
    <div style="clear:both"></div> 
</div>
<asp:Label ID="x_edit_errorMsg" runat="server" Visible="false" CssClass="validationError" />
<br />
<asp:Button ID="x_edit_save" runat="server" Text="Save Changes" OnClick="x_edit_save_Click" /> 
<asp:Button ID="x_edit_delete" runat="server" Text="Delete" OnClientClick="return confirm('Click OK to delete')" OnClick="x_edit_delete_Click" />

<uc:TextureSelection id="x_textureSelection" Visible="false" runat="server" />
<uc:ShaderSelection id="x_shaderSelection" visible="false" runat="server" />
<uc:ThumbnailSelection ID="x_thumbnailSelection" Visible="false" runat="server" />
